package com.allenkerr.app;

import com.allenkerr.client.jdk.HelloService;
import com.allenkerr.client.jdk.HelloServiceService;

/**
 * 客户端
 * 1、使用wsimport命令解析wsdl文件生成本地代码
 * --> wsimport -s . -p com.allenkerr.client -encoding utf-8 http://127.0.0.1/hello?wsdl
 * 2、通过本地代码创建一个代理对象
 * 3、通过代理对象实现远程调用
 * <p>
 * Created by 小柯(Allen Kerr) on 17.5.15 20:44.
 */
public class HelloApp {

    public static void main(String[] args) {
        HelloServiceService service = new HelloServiceService();
        HelloService proxy = service.getHelloServicePort();
        String result = proxy.sayHello("WebService");
        System.out.println(result);
    }

}
